package com.minigame.rpc.server;


import com.minigame.rpc.network.RpcMsgDecoder;
import com.minigame.rpc.network.RpcMsgEncoder;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;

public class DefaultServerPipelineHandler extends ChannelInitializer<Channel> {
    @Override
    protected void initChannel(Channel channel) throws Exception {
        ChannelPipeline channelPipeline = channel.pipeline();
        channelPipeline.addLast(new RpcMsgDecoder());
        channelPipeline.addLast(new RpcMsgEncoder());
    }
}
